<div class="trans-explanation">
	<div class='info'>	<?php echo CHtml::encode($data->info); ?></div>
	<?php if(!Yii::app()->user->isGuest){ echo  CHtml::link(CHtml::encode("编辑"), array('wordRoot/update', 'id'=>$data->id));}?>
	<div class="baav"><?php
	if($data->root){?>
		<div class='root'>
			词根: <?php
			echo CHtml::link(CHtml::encode($data->root->root), array('root/view', 'id'=>$data->root->id))
			  ?>
		</div><?php
	}?>
	<?php 
	if($data->word->wPreInfo){?>
	<div class='prefix'>前缀: <ul><?php 
		
		foreach($data->word->wPreInfo as $p){
			echo "<li>".$p->pre->prefix." ".$p->preInfo->info."</li>";
		}?></ul>
	</div><?php 
	}?>
	<?php 
	if($data->word->wSufInfo){?>
	<div class='suffix'>后缀:<ul>
		<?php 
		foreach($data->word->wSufInfo as $p){
			?><li><?php 
			echo $p->suf->suffix;
			if($p->sufClass) echo " ".$p->sufClass->info;
			if($p->sufInfo)echo " ".$p->sufInfo->info;
			?></liv><?php
		}?></ul></div><?php 
	} ?>
	</div>
</div>